<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>条件渲染</title>
  <script src="../vue.js"></script>
</head>
<body>
  <div id="root">
    <!-- <ul v-if="isShow">
      <li v-for="li in list">{{li}}</li>
    </ul>
    <div v-if="isShow">hello</div> -->
    <!-- <div v-if="!isShow">world</div> -->
    <!-- <div v-show="isShow">v-show</div>

    <template v-if="isShow">
      <h1>header 1</h1>
      <h2>header 2</h2>
    </template> -->

    <div>
      <input v-if="isShow" key="aaa" type="text" value="">
      <input v-else key="bbb" type="password" value="">
    </div>
  </div>
  <script>
    Vue.config.productionTip = false
    var vm = new Vue({
      el: '#root',
      data: {
        isShow: true,
        list: [
          'a','b','c'
        ]
      }
    })
  </script>
</body>
</html>